package com.jiudengnile.liushu.biz.domains;

import com.jiudengnile.liushu.biz.domains.template.TopicTemplateDO;
import com.jiudengnile.liushu.biz.enums.TopicStatusEnum;

/**
 * 主题
 * @author pister
 * 2012-9-8 下午02:26:28
 */
public class TopicDO extends BaseDO {

	private static final long serialVersionUID = -4932139914106806748L;
	
	private long id;
	
	/**
	 * 标题
	 */
	private String title;
	
	/**
	 * 创建者id
	 */
	private long authorId;
	
	/**
	 * 创建者昵称
	 */
	private String authorNick;
	
	/**
	 * 主题状态 
	 * @see TopicStatusEnum
	 */
	private int status;
	
	/**
	 * 使用的模板id
	 * @see TopicTemplateDO
	 */
	private long templateId;
	
	/**
	 * 所属类目id
	 * @see CategoryDO
	 */
	private long catId;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public long getAuthorId() {
		return authorId;
	}

	public void setAuthorId(long authorId) {
		this.authorId = authorId;
	}

	public int getStatus() {
		return status;
	}
	
	public TopicStatusEnum getStatusEnum() {
		return TopicStatusEnum.valueOf(status);
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getAuthorNick() {
		return authorNick;
	}

	public void setAuthorNick(String authorNick) {
		this.authorNick = authorNick;
	}

	public long getTemplateId() {
		return templateId;
	}

	public void setTemplateId(long templateId) {
		this.templateId = templateId;
	}

	public long getCatId() {
		return catId;
	}

	public void setCatId(long catId) {
		this.catId = catId;
	}
	

}
